package com.cwd.arm.infrastructure.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cwd.arm.infrastructure.po.ProjectPo;
import com.cwd.arm.infrastructure.query.ProjectDaoQuery;

import java.math.BigDecimal;
import java.util.List;

/**
* Description:项目
* Created on 2021年11月16日
* @author  yan
*/
public interface ProjectDao extends IService<ProjectPo> {

    Page<ProjectPo> selectPage(ProjectDaoQuery daoQuery);

    BigDecimal getTotalContractAmount();

    BigDecimal getTotalConfirmAmount();

    BigDecimal getTotalReceivableAmount();

    BigDecimal getTotalReceivedAmount();

    BigDecimal getTotalNodeCloseAmount();

    BigDecimal getTotalPayAmount();

    List<ProjectPo> getList(ProjectDaoQuery daoQuery);

    /**
     * 查询未在查询条件完结的项目list
     * @param daoQuery
     * @return
     */
    List<ProjectPo> getUnCloseProjectList(ProjectDaoQuery daoQuery);

    Long getCount(String projectName);

}
